package com.sunwayhorizo.health.hl7.persistent.pk;

import java.io.Serializable;

public class RimCoreEntyNamesPK implements Serializable {
    public Long entityId;
    public Long entityVersionNum;
    public Long entityNameId;    

    public RimCoreEntyNamesPK() {
    }

    public RimCoreEntyNamesPK(Long entityId, Long entityVersionNum, Long entityNameId) {
        this.entityId = entityId;
        this.entityVersionNum = entityVersionNum;
        this.entityNameId = entityNameId;
        
    }

    public boolean equals(Object other) {
        if (other instanceof RimCoreEntyNamesPK) {
            final RimCoreEntyNamesPK otherEntyNamesPK = (RimCoreEntyNamesPK) other;
            final boolean areEqual = 
                (otherEntyNamesPK.entityId.equals(entityId) && otherEntyNamesPK.entityNameId.equals(entityNameId) && otherEntyNamesPK.entityVersionNum.equals(entityVersionNum));
            return areEqual;
        }
        return false;
    }

    public int hashCode() {
        return super.hashCode();
    }
}
